Add Info.plist from Claus Broch.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 15 Mar 2006 22:33:41 +0000 (22:33 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 15 Mar 2006 22:33:41 +0000 (22:33 +0000)
gpsbabel/macgpsbabel/Info.plist [new file with mode: 0644]
gpsbabel/macgpsbabel/MacGPSBabel.applescript

diff --git a/gpsbabel/macgpsbabel/Info.plist b/gpsbabel/macgpsbabel/Info.plist
new file mode 100644 (file)
index 0000000..0b6ee75
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>CFBundleExecutable</key>
+       <string>MacGPSBabel</string>
+       <key>CFBundleIconFile</key>
+       <string>mgb.icns</string>
+       <key>CFBundleIdentifier</key>
+       <string>com.gpsbabel.MacGPSBabel</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleSignature</key>
+       <string>mGPS</string>
+       <key>CFBundleVersion</key>
+       <string>1.2.8-beta20060219</string>
+       <key>NSAppleScriptEnabled</key>
+       <string>YES</string>
+       <key>NSMainNibFile</key>
+       <string>MainMenu</string>
+       <key>NSPrincipalClass</key>
+       <string>NSApplication</string>
+</dict>
+</plist>
index 76d6c12041d9b77e6df19672d3939d969668e8b3..a604123376a1bf49343d8090e4e4f3a3ae9d7199 100644 (file)
@@ -100,7 +100,8 @@ on will open theObject
        
 end will open
 
-on will close theObject
+-- to work around the NSReceiverEvaluationScriptError we need to use should close instead of will close
+on should close theObject
        log "will close - " & name of theObject
        if theObject is window "SelectGPS" then
                -- store user defaults for this window
@@ -112,7 +113,16 @@ on will close theObject
                -- unhide MacGPSBabel window
                set visible of window "MacGPSBabel" to true
        end if
-end will close
+       
+       if theObject is window "filterWindow" then
+               set the title of button "filterButton" of window "MacGPSBabel" to "Setup Filters"
+       end if
+       
+       -- workarund NSReceiverEvaluationScriptError bug
+       set visible of theObject to false
+       return false
+       
+end should close
 
 
 -- handler for the File>Open menu item
@@ -728,6 +738,7 @@ on showFilters()
                set the title of button "filterButton" of window "MacGPSBabel" to "Setup Filters"
        end if
 end showFilters
+
 -- create the filter code
 on applyFilters()
        set filterText to ""